AN4678 Application note Full duplex SPI emulation for STM32F4 microcontrollers Introduction ... software, using CPOL (clock polarity) and CPHA (clock phase) parameters. The CPOL parameter controls the steady state value of the clock when no data is being